Repository navigation
Review follow-ups for the User-Agent change - #7
Merged
Merged
Conversation
- Image API: a constructor `source` is sent in the upload form again, as the README says and serpapi-ruby does; a call `source` overrides it - The live `source` test now reads the sent URL from lastError() on a free archive 404 and fails if the library adds its own `source` or a caller's is duplicated; the old one passed before the change too - The offline User-Agent capture test also runs without a persistent connection - CHANGELOG: the User-Agent entry moves to Behavior changes, next to the `source` ones Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-ups from the review of #6, before tagging v1.2.0. No new features.
Changes
source. Report client usage in the User-Agent header, not source #6 stopped forwarding a constructorsourceto the upload form. The README says a caller'ssourceis sent as given, and serpapi-ruby forwards it. It is sent again; a callsourceoverrides it. New unit test.sourcetest now checks something. serpapi.com never echoessource, so the old test passed before Report client usage in the User-Agent header, not source #6 too. It now looks up an unknown archive id, a free 404, and reads the sent URL fromlastError(): the caller'ssourcemust appear once and the library must add none..persistent = false, like serpapi-ruby's spec.sourceentries.SERPAPI_KEY), and thesourcenote mentions image uploads.Testing
zig build lint: passzig build test: 46/46 (1 new)zig build itest: 23/23zig build oobt(search and image upload),zig build doc: passOut of scope
v1.1.0→v1.2.0🤖 Generated with Claude Code